﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooFrameworkManagersShaderMgrWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Framework.Managers.ShaderMgr);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 14, 0, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "OnQualityChanged", _m_OnQualityChanged_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Update", _m_Update_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PreWarmUp", _m_PreWarmUp_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadLoadingVariantCollectionsShaders", _m_LoadLoadingVariantCollectionsShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadWorldVariantCollectionsShaders", _m_LoadWorldVariantCollectionsShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadPVEVariantCollectionsShaders", _m_LoadPVEVariantCollectionsShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadHangingVariantCollectionShaders", _m_LoadHangingVariantCollectionShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadBankVariantCollectionShaders", _m_LoadBankVariantCollectionShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadCityVariantCollectionsShaders", _m_LoadCityVariantCollectionsShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadPostProcessShaders", _m_LoadPostProcessShaders_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadYTextMaterial", _m_LoadYTextMaterial_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "BuildCache", _m_BuildCache_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Find", _m_Find_xlua_st_);
            
			
            
			
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Framework.Managers.ShaderMgr();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Framework.Managers.ShaderMgr();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_OnQualityChanged_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Framework.Managers.ShaderMgr.OnQualityChanged(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Update_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Framework.Managers.ShaderMgr.Update(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PreWarmUp_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable<System.Action>(L, 2)&& translator.Assignable<System.Action>(L, 3)) 
                {
                    int _enterType = LuaAPI.xlua_tointeger(L, 1);
                    System.Action _callBack = translator.GetDelegate<System.Action>(L, 2);
                    System.Action _processNoticeAction = translator.GetDelegate<System.Action>(L, 3);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.PreWarmUp( _enterType, _callBack, _processNoticeAction );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& translator.Assignable<System.Action>(L, 2)) 
                {
                    int _enterType = LuaAPI.xlua_tointeger(L, 1);
                    System.Action _callBack = translator.GetDelegate<System.Action>(L, 2);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.PreWarmUp( _enterType, _callBack );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr.PreWarmUp!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadLoadingVariantCollectionsShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadLoadingVariantCollectionsShaders( _completeFunc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadWorldVariantCollectionsShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<System.Action>(L, 1)&& translator.Assignable<System.Action<float>>(L, 2)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    System.Action<float> _progressFunc = translator.GetDelegate<System.Action<float>>(L, 2);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadWorldVariantCollectionsShaders( _completeFunc, _progressFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<System.Action>(L, 1)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadWorldVariantCollectionsShaders( _completeFunc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr.LoadWorldVariantCollectionsShaders!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadPVEVariantCollectionsShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<System.Action>(L, 1)&& translator.Assignable<System.Action<float>>(L, 2)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    System.Action<float> _progressFunc = translator.GetDelegate<System.Action<float>>(L, 2);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadPVEVariantCollectionsShaders( _completeFunc, _progressFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<System.Action>(L, 1)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadPVEVariantCollectionsShaders( _completeFunc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr.LoadPVEVariantCollectionsShaders!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadHangingVariantCollectionShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<System.Action>(L, 1)&& translator.Assignable<System.Action<float>>(L, 2)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    System.Action<float> _progressFunc = translator.GetDelegate<System.Action<float>>(L, 2);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadHangingVariantCollectionShaders( _completeFunc, _progressFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<System.Action>(L, 1)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadHangingVariantCollectionShaders( _completeFunc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr.LoadHangingVariantCollectionShaders!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadBankVariantCollectionShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<System.Action>(L, 1)&& translator.Assignable<System.Action<float>>(L, 2)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    System.Action<float> _progressFunc = translator.GetDelegate<System.Action<float>>(L, 2);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadBankVariantCollectionShaders( _completeFunc, _progressFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<System.Action>(L, 1)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadBankVariantCollectionShaders( _completeFunc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr.LoadBankVariantCollectionShaders!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadCityVariantCollectionsShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& translator.Assignable<System.Action>(L, 1)&& translator.Assignable<System.Action<float>>(L, 2)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    System.Action<float> _progressFunc = translator.GetDelegate<System.Action<float>>(L, 2);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadCityVariantCollectionsShaders( _completeFunc, _progressFunc );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& translator.Assignable<System.Action>(L, 1)) 
                {
                    System.Action _completeFunc = translator.GetDelegate<System.Action>(L, 1);
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadCityVariantCollectionsShaders( _completeFunc );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Framework.Managers.ShaderMgr.LoadCityVariantCollectionsShaders!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadPostProcessShaders_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    OWL.Rendering.HRP.HBaseRenderScene _renderScene = (OWL.Rendering.HRP.HBaseRenderScene)translator.GetObject(L, 1, typeof(OWL.Rendering.HRP.HBaseRenderScene));
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadPostProcessShaders( _renderScene );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadYTextMaterial_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Framework.Managers.ShaderMgr.LoadYTextMaterial(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_BuildCache_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    UnityEngine.Shader[] _shaders = (UnityEngine.Shader[])translator.GetObject(L, 1, typeof(UnityEngine.Shader[]));
                    
                    Yoozoo.Framework.Managers.ShaderMgr.BuildCache( _shaders );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Find_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _name = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Framework.Managers.ShaderMgr.Find( _name );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        
        
		
		
		
		
    }
}
